package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户租车中间表
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-12
 */
@TableName("com_user_car_renting")
public class ComUserCarRenting extends Model<ComUserCarRenting> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 1 个人 2企业
     */
	private Integer flag;
    /**
     * 租车 车辆ID
     */
	@TableField("car_id")
	private Long carId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
	/**
	 * 开始时间
	 */
	@TableField("star_time")
	private Long starTime;

	public Long getStarTime() {
		return starTime;
	}

	public void setStarTime(Long starTime) {
		this.starTime = starTime;
	}

	/**
	 * 结束时间
	 */
	@TableField("end_time")
	private Long endTime;

	public Long getNumber() {
		return number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	/**
	 * 租车数量
	 */
	@TableField("number")
	private Long number;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Long getCarId() {
		return carId;
	}

	public void setCarId(Long carId) {
		this.carId = carId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComUserCarRenting{" +
				"id=" + id +
				", userId=" + userId +
				", flag=" + flag +
				", carId=" + carId +
				", createTime=" + createTime +
				", starTime=" + starTime +
				", endTime=" + endTime +
				", number=" + number +
				'}';
	}
}
